package com.rs.admin.sys.org.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 用户详情表
 * </p>
 *
 * @author hedonglin
 * @since 2017-12-20
 */
@TableName("org_user_detail")
public class UserDetail extends Model<UserDetail> {

    private static final long serialVersionUID = 1L;

	public UserDetail() {
	}

	public UserDetail(Long userId) {
		this.userId = userId;
	}

	private Long id;
    /**
     * 用户编号
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 座右铭
     */
	private String motto;
    /**
     * 备注
     */
	private String remark;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getMotto() {
		return motto;
	}

	public void setMotto(String motto) {
		this.motto = motto;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "UserDetail{" +
			", id=" + id +
			", userId=" + userId +
			", motto=" + motto +
			", remark=" + remark +
			"}";
	}
}
